<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/15
  Time: 21:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        body{
            background: url("https://s1.ax1x.com/2022/03/24/qGSxZ8.png");

            background-size: cover;
            display: flex;
            justify-content: center;
        }
        .box{
            margin-top: 9%;
            color:white;
            font-family: "宋体";
            font-size: 18px;
           justify-content: center;
            flex-wrap: wrap;
        }
        button{
            width: 100px;
            height: 50px;
        }
    </style>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.4.1/css/bootstrap.min.css" >
</head>
<body>
<div class="box">
    <h1>页面出错 3秒后自动返回</h1>
    <span class="btn btn-info"><h2><%=request.getAttribute("error") %></h2></span>

</div>
<script>

  setTimeout(function (){
      window.location.replace(history.back(-1));
  },3000)



</script>
</body>
</html>
